package com.hzit.bj1804.dian.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * INFORMATION
 * @author 
 */
public class Information implements Serializable {
    private Integer inforid;

    private String inforname;

    private String inforimage;

    private Date starttime;

    private String infortext;

    private String inforstatus;

    private static final long serialVersionUID = 1L;

    public Integer getInforid() {
        return inforid;
    }

    public void setInforid(Integer inforid) {
        this.inforid = inforid;
    }

    public String getInforname() {
        return inforname;
    }

    public void setInforname(String inforname) {
        this.inforname = inforname;
    }

    public String getInforimage() {
        return inforimage;
    }

    public void setInforimage(String inforimage) {
        this.inforimage = inforimage;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public String getInfortext() {
        return infortext;
    }

    public void setInfortext(String infortext) {
        this.infortext = infortext;
    }

    public String getInforstatus() {
        return inforstatus;
    }

    public void setInforstatus(String inforstatus) {
        this.inforstatus = inforstatus;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Information other = (Information) that;
        return (this.getInforid() == null ? other.getInforid() == null : this.getInforid().equals(other.getInforid()))
            && (this.getInforname() == null ? other.getInforname() == null : this.getInforname().equals(other.getInforname()))
            && (this.getInforimage() == null ? other.getInforimage() == null : this.getInforimage().equals(other.getInforimage()))
            && (this.getStarttime() == null ? other.getStarttime() == null : this.getStarttime().equals(other.getStarttime()))
            && (this.getInfortext() == null ? other.getInfortext() == null : this.getInfortext().equals(other.getInfortext()))
            && (this.getInforstatus() == null ? other.getInforstatus() == null : this.getInforstatus().equals(other.getInforstatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getInforid() == null) ? 0 : getInforid().hashCode());
        result = prime * result + ((getInforname() == null) ? 0 : getInforname().hashCode());
        result = prime * result + ((getInforimage() == null) ? 0 : getInforimage().hashCode());
        result = prime * result + ((getStarttime() == null) ? 0 : getStarttime().hashCode());
        result = prime * result + ((getInfortext() == null) ? 0 : getInfortext().hashCode());
        result = prime * result + ((getInforstatus() == null) ? 0 : getInforstatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", inforid=").append(inforid);
        sb.append(", inforname=").append(inforname);
        sb.append(", inforimage=").append(inforimage);
        sb.append(", starttime=").append(starttime);
        sb.append(", infortext=").append(infortext);
        sb.append(", inforstatus=").append(inforstatus);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}